package com.cdtu.controller;


import com.cdtu.entity.CertifyType;
import com.cdtu.service.CertifyTypeService;
import com.cdtu.vo.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
* @author Sakura
* @description 针对表【certify_type】的数据库操作Mapper
* @createDate 2023-01-13 15:17:24
* @Entity com.cdtu.entity.CertifyType
*/
@Slf4j
//解决跨域问题
@CrossOrigin
@RequestMapping("/certifyType")
@RestController
public class CertifyTypeController {

    @Autowired
    private CertifyTypeService typeService;

    @GetMapping("/getAll")
    private R getType(){

        List<CertifyType> typeList = typeService.getAllType();

        return R.success(typeList);
    }




}




